package my.netty.channel.handler;

import my.netty.channel.ChannelPipeline;

public class DefaultChannelHandlerContext extends AbstractChannelHandlerContext {

    private final ChannelHandler handler;

    public DefaultChannelHandlerContext(ChannelHandler handler, ChannelPipeline pipeline) {
        super(pipeline);
        this.handler = handler;
    }

    @Override
    public ChannelHandler handler() {
        return handler;
    }
}
